package com.itheima.utils;

import com.itheima.dao.BookDao;
import com.itheima.dao.impl.BookDaoImpl;


public class BookDaoFactory {
    //通过静态工厂创建对象
    //public static BookDao getBookDao(){
    //通过实例工厂创建对象
    public BookDao getBookDao(){
        System.out.println("factory set ...");
        return new BookDaoImpl();
    }
}
